package com.cci.kangdao.aop;

/**
 * @author William Du
 * @date 2019/7/16
 */
public class RequestBodyThreadLocal {

    private static final ThreadLocal<String> LOCAL_REQUEST = new ThreadLocal<>();

    public static void set(String request) {
        LOCAL_REQUEST.set(request);
    }

    public static String get() {
        return LOCAL_REQUEST.get();
    }

    public static void clear() {
        LOCAL_REQUEST.remove();
    }

}
